/**
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import 'vars';

.header-with-measurements {
  border-bottom: 1px solid $border-light-grey;
}

.measurement-list {
  border-collapse: separate;
  border-right: 100px solid rgba($theme-dark-grey, .1);;
  border-spacing: 0 3px;
  font-size: $font-size-small;
  padding: 10px 15px;
  width: 100%;

  // We use the ng- prefix to indicate CSS classes that are added dynamically.
  // See status-pipes.ts.

  &.ng-status-fail {
    border-right-color: rgba($theme-red, .1);
  }

  &.ng-status-pass {
    border-right-color: rgba($theme-green, .1);
  }

  &.ng-status-running {
    border-right-color: rgba($theme-blue, .1);
  }

  thead {
    text-decoration: underline;
  }

  tbody {
    vertical-align: top;
  }

  td {
    padding: 0;
  }

  .measurement-column-name {
    width: 30%;
    padding-right: 5px;
  }

  .measurement-column-value {
    width: 30%;
    padding-right: 5px;
  }

  .measurement-column-validators {
    width: 30%;
    padding-right: 5px;
  }

  .measurement-column-result {
    text-align: right;
  }
}
